package JiCheng;

public class Teacher extends Person{
    public Integer ids;
    public String xuexiao;

    public Teacher() {
    }

    public Teacher(Integer ids, String xuexiao) {
        this.ids = ids;
        this.xuexiao = xuexiao;
    }

    public Teacher(String name, Integer age, String sex, String tel, Integer ids, String xuexiao) {
        super(name, age, sex, tel);
        this.ids = ids;
        this.xuexiao = xuexiao;
    }

    public void work(){
        System.out.println(xuexiao+"工号是："+ids+"的"+name+"老师，年龄是："+age);
    }
}
